﻿using ProtoBuf;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text;

namespace KC.DTO.Core
{
    [Serializable]
    [ProtoContract]
    [DataContract(IsReference = true)]
    public abstract class DataPermitEntityDTO : EntityDTO
    {
        public DataPermitEntityDTO()
        {
            OrgIds = new List<string>();
            RoleIds = new List<string>();
            UserIds = new List<string>();
        }

        [DataMember]
        [MaxLength(4000)]
        public List<string> OrgIds { get; set; }

        [MaxLength(4000)]
        public List<string> RoleIds { get; set; }

        [DataMember]
        [MaxLength(4000)]
        public List<string> UserIds { get; set; }
    }
}
